<?php /* Smarty version 2.6.26, created on 2018-07-25 19:44:07
         compiled from D:%5Citemstudy%5Citem/wap%5Ctemplates/default/index/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'import', 'D:\\itemstudy\\item/wap\\templates/default/index/index.html', 1, false),array('function', 'ads', 'D:\\itemstudy\\item/wap\\templates/default/index/index.html', 11, false),array('function', 'uqcms', 'D:\\itemstudy\\item/wap\\templates/default/index/index.html', 37, false),array('modifier', 'img_size', 'D:\\itemstudy\\item/wap\\templates/default/index/index.html', 14, false),)), $this); ?>
<?php echo $this->_plugins['function']['import'][0][0]->import(array('file' => "common.html",'title' => $this->_tpl_vars['UQCMS']['site_name']), $this);?>

<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
plug/swiper/swiper.min.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/index.css?t=<?php echo time(); ?>
"/>  
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/jquery.lazyload.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
plug/swiper/swiper.min.js"></script> 
<?php echo $this->_plugins['function']['import'][0][0]->import(array('file' => "header.html"), $this);?>
 
<!--轮播图片-->
<div class="ggbox">
	 <div class="swiper-container swiper1">
        <div class="swiper-wrapper">
			<?php echo $this->_plugins['function']['ads'][0][0]->load_ads(array('alias' => 'wap_index_focus_img','data' => 'focus_img'), $this);?>

			<?php $_from = $this->_tpl_vars['focus_img']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<?php if ($this->_tpl_vars['i']['type'] == '2'): ?>
           			<div class="swiper-slide"><a href="<?php echo $this->_tpl_vars['i']['link']; ?>
"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['content'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '640x0') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '640x0')); ?>
"/></a></div>
				<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?> 
        </div>
        <div class="swiper-pagination"></div> 
    </div>
</div>

<!--小广告-->
<?php echo $this->_plugins['function']['ads'][0][0]->load_ads(array('alias' => 'wap_index_focus_down','data' => 'focus_down'), $this);?>

<?php if ($this->_tpl_vars['focus_down']): ?>
<div class="spdbar">
	<div class="spd"> 
		<ul>
			<?php $_from = $this->_tpl_vars['focus_down']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>		
				<li><a href="<?php echo $this->_tpl_vars['i']['link']; ?>
"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['content'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '320x0') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '320x0')); ?>
"/></a></li>
			<?php endforeach; endif; unset($_from); ?>
		</ul>
	</div>
</div>	
<?php endif; ?> 

<!--限时抢购-->
<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods_act','v' => 'sps','c' => "seckill:limit=12"), $this);?>
	
<?php if ($this->_tpl_vars['sps']): ?>
	<div class="sps">
		<div class="name">
			<div class="name1"><span>抢购秒杀</span></div>
			<?php if ($this->_tpl_vars['sps']['next_time'] > 0): ?> 
				<div class="name2"><div class="djs_box" data-diff="<?php echo $this->_tpl_vars['sps']['next_diff']; ?>
"></div></div> 
			<?php endif; ?> 
			<a href="wap.php?m=goods&a=seckill" class="more">MORE</a>
		</div>  
		<div class="con sps_cn">
			<div class="sps_box">
				<div class="swiper-container swiper2">
					<div class="swiper-wrapper"> 
						<?php if ($this->_tpl_vars['sps']['list']): ?>			
							<?php $_from = $this->_tpl_vars['sps']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['i']):
?>		
								<dl class="swiper-slide">
									<dt><a href="<?php echo $this->_tpl_vars['__URI__']; ?>
index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['gid']; ?>
"><img data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '200x200') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '200x200')); ?>
" class="lazy"/></a></dt> 
									<dd class="pr">¥<?php echo $this->_tpl_vars['i']['price']; ?>
</dd>
									<dd class="prd"><s>¥<?php echo $this->_tpl_vars['i']['market_price']; ?>
</s></dd>
								</dl> 
							<?php endforeach; endif; unset($_from); ?>
						<?php endif; ?>
					</div>	 
				</div>
				
			</div>
		</div>	
	</div>
<?php endif; ?>

<!--产品展示部分-->
<div class="lou_box">
	<!--楼层广告-->
	<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods_index','v' => 'data','c' => "goods:page_size=6"), $this);?>

	<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['g']):
?>
	<?php if ($this->_tpl_vars['g']['goods']): ?>
	<div class="lou_con">
		<div class="name"><h2 class="f<?php echo $this->_tpl_vars['g']['lou']; ?>
"><?php echo $this->_tpl_vars['g']['cname']; ?>
</h2></div>
		<div class="content">
			<!--div class="l"> 
				<?php echo $this->_plugins['function']['ads'][0][0]->load_ads(array('alias' => $this->_tpl_vars['g']['m_ad_cid'],'data' => '1f_ad'), $this);?>
	
				<?php $_from = $this->_tpl_vars['1f_ad']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?> 
					<?php if ($this->_tpl_vars['i']['type'] == '2'): ?>
						<a href="<?php echo $this->_tpl_vars['i']['link']; ?>
" target="_blank"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['content'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '640x0') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '640x0')); ?>
"/></a>
					<?php endif; ?> 
				<?php endforeach; endif; unset($_from); ?> 
			</div-->
			<div class="gs_con">
				<?php $_from = $this->_tpl_vars['g']['goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
					<div class="gs_box">
						<div class="img"><a href="?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
"><img data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '320x320') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '320x320')); ?>
" class="lazy"/></a></div>
						<div class="con">
							<div class="ttl"><a href="?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
"><?php echo $this->_tpl_vars['i']['title']; ?>
</a></div> 
							<div class="pr">
								<i>¥</i> 
								<em><?php echo $this->_tpl_vars['i']['price']; ?>
</em> 
							</div>
						</div>
					</div>
				<?php endforeach; endif; unset($_from); ?>
			</div> 
		</div>
	</div> 
	<?php endif; ?>
	<?php endforeach; endif; unset($_from); ?>
</div>

<!--猜你喜欢-->
<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods_index','v' => 'index','c' => 'wap_index'), $this);?>
	
<?php if ($this->_tpl_vars['index']['data']): ?>
<div class="hot_box">
	<div class="hot_name"><span>猜你喜欢</span></div>
	<div class="gs_con"> 
	<?php $_from = $this->_tpl_vars['index']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>		
		<div class="gs_box">
			<div class="img"><a href="?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
"><img data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '320x320') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '320x320')); ?>
" class="lazy"/></a></div>
			<div class="con">
				<div class="ttl"><a href="?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
"><?php echo $this->_tpl_vars['i']['title']; ?>
</a></div> 
				<div class="pr">
					<i>¥</i> 
					<em><?php echo $this->_tpl_vars['i']['price']; ?>
</em> 
				</div>
			</div>
		</div>
	<?php endforeach; endif; unset($_from); ?>
	</div> 
</div>
<?php endif; ?> 

<?php echo $this->_plugins['function']['import'][0][0]->import(array('file' => "btm_tab.html"), $this);?>

<?php echo $this->_plugins['function']['import'][0][0]->import(array('file' => "footer.html"), $this);?>
  
<script type="text/javascript">
var PUBLIC_PATH	= '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
';
var APP_PATH	= '<?php echo $this->_tpl_vars['__APP__']; ?>
';
var IMG_HOST 	= '<?php echo $this->_tpl_vars['__IMG__']; ?>
';
lazyload(); 
countDown('.djs_box');
$(function(){
	$(".gs_box .img").css('height',$('.gs_box .img').width()); 
	$(".swiper-slide dt").css('height',$('.swiper-slide dt img').width()); 
}); 
var swiper1 = new Swiper('.swiper1', {
	pagination: '.swiper-pagination', 
	paginationClickable: true,
	autoplayDisableOnInteraction: false,
	autoplay: 2500,
	loop: true
}); 
var swiper2 = new Swiper('.swiper2', {   
	slidesPerView: 3.5,
	paginationClickable: true,
	spaceBetween: 0,
	freeMode: true
});

</script>